def demo(*args, **kwargs):
    print(args)
    print(*args)  # 拆开元组获得元素
    print(kwargs)
    print(*kwargs)  # 拆开字典，获得key


# 元组变量/字典变量
gl_nums = (1, 2, 3)
gl_dict = {"name": "小明", "age": 18}

demo(*gl_nums, **gl_dict)  # 传递元组、字典
# 等同于：
# demo(12, 3, name="小明", age=18)
